package com.wh.reflection;

public class Test4 {

    public static void main(String[] args) {

        //获取系统类加载器
        ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
        System.out.println(systemClassLoader);
        //获取扩展类加载器
        ClassLoader parent = systemClassLoader.getParent();
        System.out.println(parent);
        //获取根加载器
        ClassLoader parent1 = parent.getParent();
        System.out.println(parent1);
    }
}
